module.exports = app => {
  const { STRING, INTEGER, JSON } = app.Sequelize;
  const tableModel = app.model.define('t_material', {
    id: { type: INTEGER, primaryKey: true, autoIncrement: true },
    name: STRING(30),
    description: STRING(30),
    code: STRING(30),
    url: STRING(30),
    setterUrl: STRING(30),
    schema: JSON,
  });
  return tableModel;
};
